#Seconds Display
scoreboard players operation #scoreTimer temp = @s timer
scoreboard players operation #scoreTimer temp %= 20 Number
execute if score #scoreTimer temp matches 0 store result entity @s data.displaySeconds int 1 run function util:to_time/score/seconds {entity:"@s",objective:"timer",ceil:false}
execute if score #scoreTimer temp matches 0 run function dab:system/map/item_spawner/display_update with entity @s data

#spawn item
execute as @s[scores={timer=60}] positioned ~ ~0.3 ~ run function dab:system/map/item_spawner/spawn_item/spawn

execute as @s[scores={timer=..0}] run function dab:system/map/item_spawner/spawn_timer/over

scoreboard players remove @s timer 1
scoreboard players reset #scoreTimer temp